<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
		<meta HTTP-EQUIV="Expires" CONTENT="-1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>登陆</title>
		<link rel="shortcut icon" href="img/favicon.ico" />
		<link rel="bookmark" href="img/favicon.ico" type="image/x-icon" 　/>
		<link rel="stylesheet" type="text/css" href="css/common.css" />
		<link rel="stylesheet" type="text/css" href="css/index.css" />
	</head>
	<body class="bg">
		<div class="form_bg">
			<div class="form_box">
				<h3 class="text-center h3 mg_b40">用户登陆</h3>
				<p class="form_list mg_b20">
					<img src="img/icon_user.png"/>
					<input type="text" name="" id="tel" value="" placeholder="请输入电话号码" />
					
				</p>
				<p class="form_list mg_b20">
					<img src="img/icon_psda.png"/>
					<input type="password" name="" id="psd" value="" placeholder="请输入密码" />
				</p>
				<p class="clearfix">
					<a href="fotget_psd.html" class="left blue">忘记密码？</a>
					<a href="reg.html" class="right">没有账号<i class="blue">立即注册</i></a>
				</p>
				<p class="width100 text-center mg_top30"><a href="javascript:;" class="width100 big-btn">登陆</a></p>
				<p class=" text-center mg_top20"><a href="javascript:;" class="whate_login"><img src="img/icon_weatch.png"/></a></p>
			</div>
		</div>
		<div class="foot">
			<div class="clearfix text-center">
			    <a href="index.html">首页</a>
				<a href="javascript:;"  class="line">联系我们</a>
				<a href="javascript:;">关于我们</a>
			</div>
			<p class="text-center mg_tb20 color_ff">版权所有成都汤沐科技有限公司Copyright2005-2015 </p>
		</div>
		<!--微信二维码-->
		<div class="de_code">
			<h4 class="text-center h4 color_00">请使用微信二维码扫码登录</h4>
			<p class="text-center"><img class="de_code_img" src="img/code.jpg"/></p>
		</div>
		<div class="overlay" onclick="mask_over()"></div>
		<div class="msg-spring"></div>
		<script src="js/jquery-1.7.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/index.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function(){
				$('.whate_login').click(function(){
					$('.overlay').show()
					$('.de_code').fadeIn()
				})
			})
			//登陆
			function login(){
				var tel = $('#tel').val()
				var psd = $('#psd').val()
				if(!tel){
					msg('请输入电话号码')
					return false;
				}
				if(!psd){
					msg('请输入密码')
					return false;
				}
				$.ajax({
					type:"post",
					url:urlcom+"",
					async:true,
					dataType:'json',
					success:function(res){
						if(res.code==1){
							window.localStorage.setItem('user_token',res.data.token)
							window.location.href='index.html';
						}else{
							msg(res.msg)
						}
					}
				});
			}
		</script>
	</body>
</html>
